home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Headers / misckit / MiscTree.Search.h < prev    next >
Encoding:
Text File  |  1996-01-20  |  1.3 KB  |  39 lines

  1. //
  2. // MiscTree.Search.h -- Category of MiscTree that allows a MiscTree to be
  3. //         searched
  4. //        Written by Stefan Bohringer Copyright (c) 1996 by Stefan Bohringer.
  5. //                Version 1.0.  All rights reserved.
  6. //
  7. //        This notice may not be removed from this source code.
  8. //
  9. //    This program is included in the MiscKit by permission from the author
  10. //    and its use is governed by the MiscKit license, found in the file
  11. //    "LICENSE.rtf" in the MiscKit distribution.  Please refer to that file
  12. //    for a list of all applicable permissions and restrictions.
  13. //    
  14.  
  15. #import <appkit/appkit.h>
  16. #import <misckit/MiscList.h>
  17. #import <misckit/MiscString.h>
  18. #import <misckit/MiscTree.h>
  19.  
  20. @interface MiscTree(Search)
  21.  
  22. typedef enum {
  23.     MiscTreeCmp_strcmp=0,
  24.     MiscTreeCmp_regex,
  25.     MiscTreeCmp_idcmp,
  26.     MiscTreeCmp_casestrcmp
  27. } MiscTreeCmpMode_t;
  28.  
  29. -(MiscList *)listOfOccurence:(MiscString *)sstr;        //sstr is regex miscstring
  30. -(MiscList *)listOfOccurence:(MiscString *)sstr useLabel:(BOOL)useIt regex:(BOOL)regex;
  31. -(MiscList *)listOfOccurence:sstr useLabel:(BOOL)useIt cmp:(MiscTreeCmpMode_t)cmp;
  32.  
  33. // Should actually be included in Browser category
  34. - selectNode:(MiscTree *)theNode inBrowser:theBrowser;
  35. - selectString:(const char *)theString inBrowser:theBrowser;
  36. - selectValueId:theId inBrowser:theBrowser;
  37.  
  38. @end
  39.